package com.zmj.sy.mom.srv.aps.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.zmj.sy.mom.srv.aps.bean.entity.reportErp.ReportErpReply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ReportErpMapper extends SyMapper<ReportErpReply> {
    /**
     * @Description: 获取报工记录
     *
     * @author: hejiahui
     * @since: 2024/10/9 9:36
     */
    List<Map<String, Object>> getReportData(@Param(Constants.WRAPPER) QueryWrapper<?> reportQuery);
    /**
     * @Description: 报工记录汇总返回
     *
     * @author: hejiahui
     * @since: 2024/10/9 9:36
     */
    List<Map<String, Object>> getSumReportData(@Param(Constants.WRAPPER) QueryWrapper<?> reportQuery);
    /**
     * @Description: erp工序映射
     *
     * @author: hejiahui
     * @since: 2024/10/9 10:52
     */
    List<Map<String, Object>> getErpPhaseMap(@Param(Constants.WRAPPER) QueryWrapper<?> erpWrapper);
    /**
     * @Description: 获取订单数量
     *
     * @author: hejiahui
     * @since: 2024/10/17 14:50
     */
    List<Map<String, Object>> getOrderCntList(@Param(Constants.WRAPPER) QueryWrapper<?> orderQuery);
    /**
     * @Description: 获取aps中YC工序零件数量
     *
     * @author: hejiahui
     * @since: 2025/3/15 9:07
     */
    List<Map<String, Object>> getApsYcList(@Param(Constants.WRAPPER) QueryWrapper<?> apsYcWrapper);

    List<Map<String, Object>> getErpYcList(@Param(Constants.WRAPPER) QueryWrapper<?> apsYcWrapper);

    List<Map<String, Object>> getTopAssembly(@Param(Constants.WRAPPER) QueryWrapper<?> topWrapper);
}
